<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>MVVM实现原理</title>
</head>
<body>
    <div id="app">
        <h2>{{person.name}} -- {{person.age}}</h2>
        <h3>{{person.fav}}</h3>
        <ul>
            <li>1</li>
            <li>2</li>
            <li>3</li>
        </ul>
        <h3>{{msg}}</h3>
        <div v-text='msg'></div>
        <div v-html="htmlStr"></div>
        <input type="text" v-model="msg">
    </div>
    <script src="./vue/compile.js"></script>
    <script src="./vue/index.js"></script>
    <script>
        new Vue({
            el: '#app',
            data() {
                return {
                    person: {
                        name: "GG",
                        age: "27",
                        fav: "girl",
                    },
                    msg: "778899"
                }
            }
        })
    </script>
</body>
</html>